package com.test.dubbo.example;

import java.io.IOException;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;


public class LuncherProvider  {
	public static void main(String[] args) throws InterruptedException, IOException{
		LuncherProvider luncher=new LuncherProvider();
		luncher.start();
	}
	
	void start() throws IOException{
		String configLocation="spring/dubbo-provider.xml";
		ClassPathXmlApplicationContext  context =new  ClassPathXmlApplicationContext(configLocation);
		context.start();
//		String [] names=context.getBeanDefinitionNames();
//		System.out.print("Beans:");
//		for (String string : names)
//			System.out.print(string+",");
		System.out.println();
		
		System.in.read();
	}
}
